package com.jinbei.service;

import com.github.pagehelper.PageInfo;
import com.jinbei.domain.Authority;
import java.util.Map;

/**
 * @author zflu
 * 权限 service
 * Created by lucky on 2018/7/9.
 */
public interface AuthorityService {
    /**
     * @author zflu
     * @Description  权限新增
     * @date 2018-7-9 15:47:09
     * @param authority
     * @return int
     */
    int insertAuthority(Authority authority) throws Exception;

    /**
     * @author zflu
     * @Description  权限修改
     * @date 2018-7-9 15:47:09
     * @param authority
     * @return int
     */
    int updateAuthority(Authority authority) throws Exception;

    /**
     * @author zflu
     * @Description 根据权限id删除权限
     * @date 2018-7-9 15:47:09
     * @param id
     * @return int
     */
    int deleteAuthorityById(int id) throws Exception;

    /**
     * @author zflu
     * @Description 根据权限id查询权限
     * @date 2018-7-9 15:47:09
     * @param id
     * @return com.jinbei.domain.Authority
     */
    Authority queryAuthorityById(int id) throws Exception;

    /**   
     * @author zflu
     * @Description 日志记录分页列表
     * @date 2018/7/12 9:40  
     * @param pageNum, pageSize
     * @return com.github.pagehelper.PageInfo  
     */ 
    PageInfo queryAuthorityPage(int pageNum, int pageSize) throws Exception;

    /**
     * @author zflu
     * @Description   查询所有授权url的map集合
     * @date 2018/7/12 9:54
     * @param
     * @return java.util.HashMap<java.lang.String,java.lang.Object>
     */
    Map<String,Object> queryAllAuthorUrl() throws Exception;
}
